package com.care.dao.user;

import java.util.List;

import com.care.entity.Consult;
import com.care.entity.Doctor;
import com.care.entity.User;

public interface UserDao {
	public void register(String name,String email,String password,String sex);//注册
	public List<Consult> selAllConsult(User user,int pageNum, int pageSize);//查询咨询问题
	public boolean addConsult(Consult consult);//添加问题
	public Consult selConsult(int id);//查询一个咨询问题
	public void delConsult(Consult selConsult);//删除问题
	public List<Consult> selTypeConsult(String typeint,int pageNum, int pageSize);//查询不同科室咨询问题
	public int selCountConsult();
	public List<Consult> selDocConsult(Doctor doctor);//查询向该医生咨询的所有问题
	public void updConsult(int id,String content,String type);//更改问题
	public boolean updUser(String name,String password,String sex,String eamil);//改自己
}
